import { PAGING } from '@/constant'
import type {
  EliminateEquipmentQueryListParams,
  EliminateEquipmentSaveOrUpdateParams,
} from '@/types'

export const defaultFormData: Partial<EliminateEquipmentSaveOrUpdateParams>
  = {
    equipmentName: '',
    equipmentModel: '',
    equipmentPower: 0,
    eliminateReason: '',
    remarks: '',
    batch: null as any,
    number: '',
  }

export const formRules = generateCurrencyFormRules(
  defaultFormData,
  ['remarks', 'equipmentPower'],
)

export const defaultPagingParams: Partial<EliminateEquipmentQueryListParams>
  = {
    ...PAGING.PARAMS,
    equipmentName: '',
    equipmentModel: '',
  }
